<?php

namespace Biz\Resources;

use Lumen\Http\Resources\Json\Resource;

/**
 * AppTokenResource.
 *
 * @license [http://www.85do.com] [杭州永奥网络科技有限公司]
 * @copyright Copyright (c) 2018-2026 Hangzhou Yongao Technology Co., Ltd. All rights reserved.
 */
class TokenResource extends Resource
{
    /**
     * The "item" wrapper that should be applied.
     *
     * @var string
     */
    public static $wrap = 'token';

    /**
     * Transform the resource into an array.
     *
     * @param \Illuminate\Http\Request $request
     *
     * @return array
     */
    public function toArray($request)
    {
        return $this->resource->toArray();
    }
}
